<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>03_案例练习-合并数组-在原数组中合并</title>
    </head>
    <body>
        <script>
            var arr = [1,2,3,4,5];

            var arr1 = [6,7,8,9,10];

            for(var i = 0; i < arr1.length; i++){
                arr[arr.length] = arr1[i];
            }

            console.log(arr);
        </script>
    </body>
</html>